/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.audioeditor.application;

import java.io.File;
import javafx.beans.property.SimpleDoubleProperty;
import javafx.beans.property.SimpleObjectProperty;
import javafx.beans.property.SimpleStringProperty;

/**
 *
 * @author escapes
 */
public class SoundFile {

    private SimpleStringProperty name;
    private SimpleStringProperty start;
    private SimpleStringProperty end;
     private SimpleStringProperty defaultStart;
    private SimpleStringProperty defaultEnd;
    private SimpleObjectProperty<File>file;

    public SoundFile(String name, String sart, String end,File f,String defaultStart,String defaultEnd) {
        this.name = new SimpleStringProperty(name);
        this.start = new SimpleStringProperty(sart);
        this.end = new SimpleStringProperty(end);
        this.defaultStart = new SimpleStringProperty(defaultStart);
        this.defaultEnd = new SimpleStringProperty(defaultEnd);
        this.file=new SimpleObjectProperty<>(f);
    }

    /**
     * @return the name
     */
    public String getName() {
        return name.get();
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name.set(name);
    }

    /**
     * @return the start
     */
    public String getSart() {
        return start.get();
    }

    /**
     * @param start the start to set
     */
    public void setSart(String sart) {
        this.start.set(sart);
    }

    /**
     * @return the end
     */
    public String getEnd() {
        return end.get();
    }

    /**
     * @param end the end to set
     */
    public void setEnd(String end) {
        this.end.set(end);
    }

    /**
     * @return the file
     */
    public File getFile() {
        return file.get();
    }

    /**
     * @param file the file to set
     */
    public void setFile(File file) {
        this.file.set(file);
    }

    /**
     * @return the defaultStart
     */
    public String getDefaultStart() {
        return defaultStart.get();
    }

    /**
     * @param defaultStart the defaultStart to set
     */
    public void setDefaultStart(String defaultStart) {
        this.defaultStart.set(defaultStart);
    }

    /**
     * @return the defaultEnd
     */
    public String getDefaultEnd() {
        return defaultEnd.get();
    }

    /**
     * @param defaultEnd the defaultEnd to set
     */
    public void setDefaultEnd(String defaultEnd) {
        this.defaultEnd.set(defaultEnd);
    }
}
